/* style.css - 全国大学英语四、六级考试网站样式 */

/* 基础重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-size: 14px;
  font-family: 'Microsoft yahei', Arial, "Times New Roman", Times, serif;
  background: #fff;
  text-align: left;
}

a {
  text-decoration: none;
  color: #333333;
}

div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, input {
  padding: 0;
  margin: 0;
  font-family: Arial, sans-serif;
}

img {
  border: 0;
  margin: 0;
}

ul, li {
  list-style: none;
}

.clear {
  clear: both;
}

.w1150 {
  width: 1150px;
  margin: 0 auto;
  position: relative;
}

/* 头部样式 */
.header-top {
  height: 35px;
  border-bottom: 1px solid #ddd;
  background: #f2f2f2;
  min-width: 1150px;
}

.header-top-con {
  width: 1150px;
  height: 35px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.headerBgImg {
  position: absolute;
  left: 172px;
  top: -10px;
  height: 60px;
}

.header-link {
  float: left;
  text-align: left;
  line-height: 35px;
  font-size: 12px;
  padding-left: 0;
}

.header-top-right {
  float: right;
  width: 500px;
  position: relative;
  color: #313F61;
  line-height: 35px;
  font-size: 12px;
  text-align: right;
}

/* 主导航 */
.logonline {
  border-bottom: solid 1px #E4E4E4;
}

.header_bottom {
  height: 80px;
  float: left;
  width: 300px;
}

.header_bottom .CurrentlyImg {
  padding: 10px 0 0 0;
}

.header_bottom .CurrentlyImg img {
  height: 65px;
}

.nav {
  height: 80px;
  float: right;
  position: relative;
}

.nav .mask {
  background: #FAFAFA;
  border-top: solid 3px #0DA3E2;
  position: absolute;
  left: 0;
  top: 0;
  height: 76px;
  width: 80px;
}

.nav .navBgBox {
  height: 80px;
  overflow: hidden;
  padding-top: 3px;
}

.nav ul li {
  float: left;
  min-width: 80px;
  line-height: 80px;
  color: #000;
  overflow: hidden;
  position: relative;
  height: 80px;
  text-align: center;
}

.nav ul li a {
  color: #000;
}

/* 主要内容区域 */
.main-content {
  min-height: calc(100vh - 200px);
}

/* 横幅区域 */
.banner-section {
  background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
  height: 320px;
  position: relative;
  margin-bottom: 30px;
}

.banner-container {
  display: flex;
  align-items: center;
  height: 100%;
  position: relative;
}

.main-announcement {
  flex: 1;
  color: #fff;
  padding-right: 30px;
}

.main-announcement h1 {
  font-size: 24px;
  margin-bottom: 15px;
  line-height: 1.4;
}

.main-announcement h1 a {
  color: #fff;
}

.main-announcement h1 a:hover {
  color: #ffd666;
}

.main-announcement p {
  font-size: 14px;
  opacity: 0.9;
  line-height: 1.6;
}

.announcement-list {
  width: 410px;
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 4px;
  backdrop-filter: blur(5px);
}

.announcement-list ul {
  margin-bottom: 15px;
}

.announcement-list li {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.announcement-list li:last-child {
  border-bottom: none;
}

.announcement-list li a {
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  display: block;
  padding-left: 15px;
}

.announcement-list li a:hover {
  color: #ffd666;
}

.more-link a {
  color: #fe8500 !important;
  font-weight: 500;
  font-size: 14px;
}

.more-link a:hover {
  color: #ffd666 !important;
}

/* 功能盒子样式 */
.services-section {
  padding: 40px 0;
  background: #f8f9fa;
}

.services-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.funbox {
  margin-left: 14px;
  float: left;
  width: 275px;
  height: 240px;
  border: solid 1px #E4E4E4;
  transition: background-image 1s;
  background: #fff;
  position: relative;
}

.fun01 {
  margin-left: 0;
}

.fun-title {
  height: 95px;
  margin: 0 7px;
  border-bottom: 1px solid #CCCCCC;
  background: url(/res/Home/structure/011.png) no-repeat 10px center;
  background-size: 50px auto;
  font-size: 25px;
  color: #111111;
  padding-left: 95px;
  text-align: left;
  line-height: 95px;
}

.fun-title a {
  color: inherit;
  display: block;
  width: 100%;
  height: 100%;
}

.fun-title a:hover {
  color: #1890ff;
}

.fun-con {
  padding: 20px 15px;
  height: 140px;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.6;
  color: #666;
}

.fun-con span {
  display: block;
  font-size: 14px;
  line-height: 1.6;
  color: #666;
}

.mores {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-top: 1px solid #E4E4E4;
  background: #fafafa;
}

.mores a {
  color: #1890ff;
  font-size: 14px;
  font-weight: normal;
}

.mores a:hover {
  color: #096dd9;
  text-decoration: underline;
}

/* 考试服务特殊样式 */
.fun-con2 {
  padding-left: 18px;
  padding-top: 20px;
}

.fun-con2 dl {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.fun-con2 dd {
  height: 33px;
  line-height: 33px;
  margin-bottom: 8px;
  float: left;
  width: 113px;
  text-align: center;
  background: #f0f7ff;
  border: 1px solid #d6e4ff;
  border-radius: 4px;
  margin-right: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.fun-con2 dd:hover {
  background: #1890ff;
  border-color: #1890ff;
}

.fun-con2 dd a {
  width: 113px;
  font-size: 14px;
  color: #1890ff;
  display: block;
  transition: color 0.3s ease;
}

.fun-con2 dd:hover a {
  color: #fff;
}

/* 页脚样式 */
.site-footer {
  background: #f4f4f4;
  color: #303d5d;
  padding: 30px 0 20px;
  border-top: 1px solid #ccc;
  font-size: 12px;
}

.footer-container {
  text-align: center;
}

.footer-info p {
  margin-bottom: 8px;
  line-height: 1.6;
}

.footer-info a {
  color: #303d5d;
  margin: 0 10px;
}

.footer-info a:hover {
  color: #1890ff;
  text-decoration: underline;
}

.footer-info p:last-child {
  margin-top: 15px;
  color: #666;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .w1150, .header-top-con {
      width: 100%;
      padding: 0 15px;
  }
  
  .header-top {
      min-width: 100%;
  }
  
  .services-container {
      justify-content: center;
      gap: 20px;
  }
  
  .funbox {
      width: calc(50% - 20px);
      margin-left: 0;
  }
  
  .fun01 {
      margin-left: 0;
  }
}

@media (max-width: 768px) {
  .header_bottom, .nav {
      float: none;
      width: 100%;
      text-align: center;
  }
  
  .header_bottom {
      height: auto;
      padding: 10px 0;
  }
  
  .nav {
      height: auto;
  }
  
  .nav ul li {
      float: none;
      display: inline-block;
      min-width: auto;
      height: 50px;
      line-height: 50px;
      margin: 0 10px;
  }
  
  .banner-section {
      height: auto;
      padding: 30px 0;
  }
  
  .banner-container {
      flex-direction: column;
  }
  
  .main-announcement {
      padding-right: 0;
      margin-bottom: 20px;
      text-align: center;
  }
  
  .announcement-list {
      width: 100%;
      max-width: 400px;
      margin: 0 auto;
  }
  
  .services-section {
      padding: 30px 0;
  }
  
  .funbox {
      width: 100%;
      max-width: 400px;
      margin-left: 0 !important;
      float: none;
  }
  
  .fun-con2 dd {
      width: 100px;
      margin-right: 8px;
  }
  
  .fun-con2 dd a {
      width: 100px;
      font-size: 12px;
  }
}

@media (max-width: 480px) {
  .main-announcement h1 {
      font-size: 20px;
  }
  
  .announcement-list {
      padding: 15px;
  }
  
  .funbox {
      padding: 15px;
      height: auto;
      min-height: 240px;
  }
  
  .fun-con {
      height: auto;
      min-height: 120px;
  }
  
  .fun-con2 dd {
      width: 90px;
      margin-right: 6px;
  }
  
  .fun-con2 dd a {
      width: 90px;
  }
}